<?php
require_once("../../../configuration.inc");
require_once(CONF_PATH."verbs.inc");
require_once(SRC_PATH."Database/DatabaseManager.php");
require_once(SRC_PATH."Object/Verb.php");
require_once(SRC_PATH."Object/VerbConjugation.php");

set_time_limit(0);

$databaseManager = new DatabaseManager();
$verbs = array();

$reader = $databaseManager->read(new Verb(), "GET_DUPLICATES");
$reader->execute();
while($verb = $reader->next()){
	array_push($verbs, $verb);
}

if(count($verbs) > 0){
foreach($verbs as $verb){
	$databaseManager->delete($verb);
}
echo count($verbs)." Deleted";
}
else{
	echo "No duplicates found";
}
?>